<?php
	header("Content-type: text/html; charset=UTF-8");
	
	$con = mysql_connect("localhost","root","");
	if (!$con)
	  {
	  	die('Could not connect: ' . mysql_error());
	  }
	mysql_query("set names 'utf8'");
	mysql_select_db("weixin", $con);
	$sql="SELECT * from con_tab";
	$result = mysql_query($sql);
	$arr = array();
	while($row = mysql_fetch_object($result)){
		array_push($arr,$row);
	}
	echo json_encode(array('userlist'=>$arr));
	mysql_free_result($result);
	mysql_close();
?>